package com.huixue.cn.ztej.dao;

import java.util.List;
import java.util.Map;

import com.huixue.cn.ztej.bean.Project;
import com.huixue.cn.ztej.bean.User;
import com.huixue.cn.ztej.utils.annotation.MyBatisRepository;


/**
 * 
 * @author Administrator
 *
 */
@MyBatisRepository
public interface SysProjectMapper {
	
	/**
	 * save Project
	 * 
	 * @param Project
	 * @return
	 */
	public void saveProject(Project pro);

	/**
	 * update Project
	 * 
	 * @param Project
	 * @return
	 */
	public void update(Project user);

	/**
	 * query Project by primary key
	 * 
	 * @param
	 * @return Project
	 */
	public Project findByProId(Integer id);
	
	/**
	 * query Project by login_account
	 * 
	 * @param
	 * @return Project
	 */
	public Project findByLoginName(String loginName);
	/**
	 * 根据登录名查找所有状态类型的用户
	 * 
	 * @param
	 * @return Project
	 */
	public Project findByUserName(String userName);
	/**
	 * delete Project by primary key
	 * 
	 * @param id
	 * @return
	 */
	public void delete(int proId);
	
	 /**
	  * 分页查询项目
	  * @param searchParams
	  * @return
	  */
	 public List<Project> searchByPage(Map<String, Object> searchParams);
	 
	 /**
	  * 查询出所有的项目
	  * @return
	  */
	 public List<Project> findAll(Map<String, Object> searchParams);

	 
	
	
}
